<?php
require_once '../config.php';
require_once '../source.php';
require_once '../dao/dao_db.php';
require_once '../dao/dao_students_manage.php';
session_start();
if(!isset($_SESSION['userid'])||$_SESSION['level']!=TEACHER){
	header("LOCATION:../login.php");
}else{
	$userid=$_GET['userid'];
	del_students_list($userid);
	mysql_close();
	header("LOCATION:../student_manage.php");
}

?>
